package controller;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.com.jf.annotations.ControllerJF;
import br.com.jf.annotations.DestroyJF;
import br.com.jf.annotations.HttpServletRequestJF;
import br.com.jf.annotations.HttpServletResponseJF;
import br.com.jf.annotations.InitJF;
import br.com.jf.annotations.InjectJF;
import br.com.jf.annotations.MethodJF;
import br.com.jf.annotations.RequestTypeJF;
import br.com.jf.annotations.ScopeTypeJF;
import br.com.jf.constants.AjaxType;
import br.com.jf.constants.RequestType;
import br.com.jf.constants.ScopeType;

@ControllerJF(urlPattern = "framework")
@ScopeTypeJF(scope=ScopeType.NONE)
public class FrameworkController {

	@InjectJF
	private ServletContext context;
	
	@InjectJF
	private ServletConfig config;

	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuIntroducao",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuIntroducao(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		
		return "framework/menuIntroducao.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuNavegacao",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuNavegacao(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuNavegacao.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuUpload",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuUpload(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuUpload.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuAjax",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuAjax(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuAjax.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuControllers",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuControllers(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuControllers.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuEscopos",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuEscopos(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuEscopos.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuInternacionalizacao",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuInternacionalizacao(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuInternacionalizacao.jsp";
	}
	
	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuMapeamentos",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuMapeamentos(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuMapeamentos.jsp";
	}
	

	@MethodJF
	@RequestTypeJF(method=RequestType.GET,name="menuConfiguracoes",ajax=AjaxType.AJAX,ajaxNavigation=true)
	public String menuConfiguracoes(@HttpServletRequestJF HttpServletRequest request, @HttpServletResponseJF HttpServletResponse response) throws ServletException, IOException{
		
		return "framework/menuConfiguracoes.jsp";
	}

	
}
